package com.guli.eduService.client.impl;

import com.guli.commonutils.R;
import com.guli.eduService.client.VodClient;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.stereotype.Component;

import java.util.List;

/**
 * 熔断实现类
 * 正常调用出错会执行该类中的方法
 */
@Component
public class VodFileDegradeFeignClient implements VodClient {
    @Override
    public R removeAlyVideo(String id) {
        return R.error().message("删除出错");
    }

    @Override
    public R deleteBatch(List<String> videoIdList) {
        return R.error().message("删除出错");
    }
}